package com.eportal.vo.controller.background.topenlog;

import com.framework.utils.excel.ExcelVOAttribute;

import java.util.Date;

/**
 * 开门日志列表导出excel
 * 只有 @ExcelVOAttribute 注解标注的且 isExport=true 的字段才会导出 ,按 column=A、B、C...的顺序、
 * http://blog.csdn.net/lk_blog/article/details/8007837
 * Created by Saber on 2017/8/9.
 */
public class TOpenLogListRow {

    /**
     * sId
     */
    private Long sId;

    /**
     * 合作方用户编号
     */
    private String aUid;

    /**
     * 状态 默认:0正常，1:转移设备或失效
     */
    private String status;

    /**
     * PID
     */
    private String pId;

    /**
     * 0:业主钥匙，1：访客钥匙
     */
    private String kType;

    /**
     * 0:访客微信开门记录;1:认证用户微信开门记录;2:app开门记录;3:指纹开门;4:密码开门；5：门禁卡；6:机械钥匙
     */
    private String openType;

    /**
     * 0:访客微信开门记录;1:认证用户微信开门记录;2:app开门记录;3:指纹开门;4:密码开门；5：门禁卡；6:机械钥匙
     */
    @ExcelVOAttribute(name = "来源", column = "D",isExport = true)
    private String openType1;

    /**
     * 0:失败    1:成功
     */
    private String result;

    /**
     * 记录产生时间作为开始开门的时间
     */
    private Date oTime;

    /**
     * 记录产生时间作为开始开门的时间
     */
    @ExcelVOAttribute(name = "开门时间", column = "H",isExport = true)
    private String oTime1;

    /**
     * 合作方编号
     */
    private String agtCode;

    /**
     * 社区信息
     */
    private String communityId;

    /**
     * 合作方名称
     */
    @ExcelVOAttribute(name = "公司", column = "B",isExport = true)
    private String agtName;

    /**
     * 所属的区域经理id
     */
    private String sysoptId;

    /**
     * 社区名称
     */
    @ExcelVOAttribute(name = "小区", column = "C",isExport = true)
    private String communityName;

    /**
     * 【开发平台注册安装机构用】 省市区县,汉字,如XX省XX市XX区, 配置好 AREACODE 的时候,就拼接出该字段,该字段在页面上隐藏,但是调用安装机构接口的时候直接提交！
     */
    @ExcelVOAttribute(name = "所属区域", column = "A",isExport = true)
    private String cityCode;

    /**
     * 手机号
     */
    @ExcelVOAttribute(name = "手机号", column = "G",isExport = true)
    private String tel;

    /**
     * 姓名
     */
    @ExcelVOAttribute(name = "姓名", column = "F",isExport = true)
    private String aUname;

    /**
     * 住户类型：1：主业主（一个房间只有一个），2：主租客（一个房间只有一个），3：业主的住户，4：租客的住户
     */
    private String uType;

    /**
     * 安装钥匙名称
     */
    @ExcelVOAttribute(name = "门禁名称", column = "e",isExport = true)
    private String installName;

    /**
     * 钥匙的SID , 当ktype = 1 时 MTYPE用KSID获取
     */
    private String kSid;



    public String getAgtCode() {
        return agtCode;
    }

    public void setAgtCode(String agtCode) {
        this.agtCode = agtCode;
    }

    public String getAgtName() {
        return agtName;
    }

    public void setAgtName(String agtName) {
        this.agtName = agtName;
    }

    public String getaUid() {
        return aUid;
    }

    public void setaUid(String aUid) {
        this.aUid = aUid;
    }

    public String getaUname() {
        return aUname;
    }

    public void setaUname(String aUname) {
        this.aUname = aUname;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getInstallName() {
        return installName;
    }

    public void setInstallName(String installName) {
        this.installName = installName;
    }

    public String getkSid() {
        return kSid;
    }

    public void setkSid(String kSid) {
        this.kSid = kSid;
    }

    public String getkType() {
        return kType;
    }

    public void setkType(String kType) {
        this.kType = kType;
    }

    public String getOpenType1() {
        return openType1;
    }

    public void setOpenType1(String openType1) {
        this.openType1 = openType1;
    }

    public String getOpenType() {
        return openType;
    }

    public void setOpenType(String openType) {
        this.openType = openType;
    }

    public String getoTime1() {
        return oTime1;
    }

    public void setoTime1(String oTime1) {
        this.oTime1 = oTime1;
    }

    public Date getoTime() {
        return oTime;
    }

    public void setoTime(Date oTime) {
        this.oTime = oTime;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Long getsId() {
        return sId;
    }

    public void setsId(Long sId) {
        this.sId = sId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSysoptId() {
        return sysoptId;
    }

    public void setSysoptId(String sysoptId) {
        this.sysoptId = sysoptId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getuType() {
        return uType;
    }

    public void setuType(String uType) {
        this.uType = uType;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("TOpenLogListRow{");
        sb.append("agtCode='").append(agtCode).append('\'');
        sb.append(", sId=").append(sId);
        sb.append(", aUid='").append(aUid).append('\'');
        sb.append(", status='").append(status).append('\'');
        sb.append(", pId='").append(pId).append('\'');
        sb.append(", kType='").append(kType).append('\'');
        sb.append(", openType='").append(openType).append('\'');
        sb.append(", openType1='").append(openType1).append('\'');
        sb.append(", result='").append(result).append('\'');
        sb.append(", oTime=").append(oTime);
        sb.append(", oTime1='").append(oTime1).append('\'');
        sb.append(", communityId='").append(communityId).append('\'');
        sb.append(", agtName='").append(agtName).append('\'');
        sb.append(", sysoptId='").append(sysoptId).append('\'');
        sb.append(", communityName='").append(communityName).append('\'');
        sb.append(", cityCode='").append(cityCode).append('\'');
        sb.append(", tel='").append(tel).append('\'');
        sb.append(", aUname='").append(aUname).append('\'');
        sb.append(", uType='").append(uType).append('\'');
        sb.append(", installName='").append(installName).append('\'');
        sb.append(", kSid='").append(kSid).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
